package si.cir.gui;

import si.cir.R;
import android.app.Fragment;
import android.app.FragmentManager;
import android.os.Bundle;
import android.view.Menu;

public class StukActivity extends TemplateActivity{
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        FragmentManager fragmentManager = getFragmentManager();
    	
		String fragmentTag = "FragmentStuk";
		Fragment fragment = fragmentManager.findFragmentByTag(fragmentTag);

		if(fragment == null){
            fragment = new StukListFragment();
            fragmentManager.beginTransaction().add(android.R.id.content, fragment, 
            		fragmentTag).commit();
        }
    }

    @Override
    public boolean onPrepareOptionsMenu(Menu menu) {
    	super.onPrepareOptionsMenu(menu);
    	menu.findItem(R.id.home).setVisible(true);
    	menu.findItem(R.id.soum).setVisible(true);
    	menu.findItem(R.id.vreme).setVisible(true);
    	return true;
    }
}
